package com.netease.pris.activity;

import android.app.ProgressDialog;
import android.graphics.Color;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.WindowManager;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.RadioGroup;
import android.widget.RadioGroup.OnCheckedChangeListener;
import android.widget.TextView;
import com.netease.b.a.d;
import com.netease.framework.ActivityEx;
import com.netease.framework.k;
import com.netease.pris.v;

public class PRISActivityReport extends ActivityEx
  implements View.OnClickListener, RadioGroup.OnCheckedChangeListener
{
  static final String a = "PRISActivityReport";
  com.netease.pris.b b = new ev(this);
  private EditText c;
  private ProgressDialog d;
  private RadioGroup e;
  private final int f = 1;
  private final int g = 2;
  private final int h = 3;
  private final int i = 4;
  private int j = 1;
  private final String k = "problem_type";
  private EditText l;
  private TextView m;

  private int a(int paramInt)
  {
    int n = 0;
    switch (paramInt)
    {
    default:
    case 1:
    case 2:
    case 3:
    case 4:
    }
    while (true)
    {
      return n;
      n = 2131558590;
      continue;
      n = 2131558591;
      continue;
      n = 2131558592;
      continue;
      n = 2131558593;
    }
  }

  private void a(Bundle paramBundle)
  {
    if (paramBundle != null);
    for (this.j = paramBundle.getInt("problem_type"); ; this.j = 1)
    {
      setTitle(2131362111);
      g(8);
      this.c = ((EditText)findViewById(2131558594));
      this.e = ((RadioGroup)findViewById(2131558589));
      this.e.setOnCheckedChangeListener(this);
      this.e.check(a(this.j));
      this.l = ((EditText)findViewById(2131558595));
      if (d.h().i())
        this.l.setVisibility(0);
      this.m = ((TextView)findViewById(2131558409));
      this.m.setBackgroundDrawable(k.a(this).b(2130837812));
      int n = com.netease.image.c.a(this, 8.0F);
      ((LinearLayout)findViewById(2131558405)).setPadding(0, 0, n, 0);
      this.m.setVisibility(0);
      this.m.setTextSize(14.0F);
      this.m.setTextColor(Color.rgb(255, 255, 255));
      this.m.setText(2131362295);
      this.m.setOnClickListener(this);
      return;
    }
  }

  private String b(int paramInt)
  {
    int n = 0;
    switch (paramInt)
    {
    default:
    case 1:
    case 2:
    case 3:
    case 4:
    }
    while (true)
    {
      return getString(n);
      n = 2131362290;
      continue;
      n = 2131362291;
      continue;
      n = 2131362292;
      continue;
      n = 2131362293;
    }
  }

  void b()
  {
    String str1 = this.c.getEditableText().toString();
    if (TextUtils.isEmpty(str1))
      com.netease.g.b.c("PrisActivity", "content is empty or null");
    String str2;
    while (true)
    {
      return;
      str2 = b(this.j);
      if (!TextUtils.isEmpty(str2))
        break;
      com.netease.g.b.c("PrisActivity", "mType is empty or null");
    }
    this.d = ProgressDialog.show(this, null, getString(2131362024), true, true);
    v.a().a(this.b);
    if (this.l.getVisibility() == 0)
    {
      str3 = this.l.getText().toString();
      if (!TextUtils.isEmpty(str3));
    }
    for (String str3 = d.h().c(); ; str3 = d.h().c())
    {
      com.netease.pris.d.c.b(p(), 1, str1);
      v.a().a(str2, str1, str3, true);
      break;
    }
  }

  void c()
  {
    finish();
  }

  public void onCheckedChanged(RadioGroup paramRadioGroup, int paramInt)
  {
    switch (paramInt)
    {
    default:
    case 2131558590:
    case 2131558591:
    case 2131558592:
    case 2131558593:
    }
    while (true)
    {
      return;
      this.j = 1;
      continue;
      this.j = 2;
      continue;
      this.j = 3;
      continue;
      this.j = 4;
    }
  }

  public void onClick(View paramView)
  {
    switch (paramView.getId())
    {
    default:
    case 2131558409:
    }
    while (true)
    {
      return;
      b();
    }
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903098);
    a(paramBundle);
    DisplayMetrics localDisplayMetrics = new DisplayMetrics();
    ((WindowManager)getSystemService("window")).getDefaultDisplay().getMetrics(localDisplayMetrics);
    com.netease.g.b.c("PRISActivityReport", "w:" + localDisplayMetrics.widthPixels + ",h:" + localDisplayMetrics.heightPixels + ",d:" + localDisplayMetrics.density + ",dpi:" + localDisplayMetrics.densityDpi + ",sd:" + localDisplayMetrics.scaledDensity + ",xd:" + localDisplayMetrics.xdpi + ",yd:" + localDisplayMetrics.ydpi);
  }

  protected void onDestroy()
  {
    super.onDestroy();
    v.a().b(this.b);
    if (this.b != null)
    {
      this.b.c();
      this.b = null;
    }
    if (this.d != null)
    {
      this.d.dismiss();
      this.d = null;
    }
  }

  protected void onSaveInstanceState(Bundle paramBundle)
  {
    super.onSaveInstanceState(paramBundle);
    paramBundle.putInt("problem_type", this.j);
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.PRISActivityReport
 * JD-Core Version:    0.6.0
 */